package 算法.练习1;

import java.util.Scanner;

/**
 * @author:谢君臣
 * @Date:2021/7/15-14:47
 * @version:1.0
 * @function:
 */
public class D1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String input = in.nextLine();
        String[]data = input.split(" ");
        System.out.println(AsubB(data[0],data[1]));
    }
    private static String AsubB(String data1, String data2) {
        StringBuilder res = new StringBuilder();
        int i = 1,flag = 0;
        while(i<=data1.length()&&i<=data2.length()){
            int temp = data1.charAt(data1.length()-i)-'0'+data2.charAt(data2.length()-i)-'0'+flag;
            flag = temp/10;
            res.append(String.valueOf(temp%10));
            i++;
        }
        while(i<=data1.length()){
            int temp = data1.charAt(data1.length()-i)-'0'+flag;
            flag = temp/10;
            res.append(String.valueOf(temp%10));
            i++;
        }
        while(i<=data2.length()){
            int temp = data2.charAt(data2.length()-i)-'0'+flag;
            flag = temp/10;
            res.append(String.valueOf(temp%10));
            i++;
        }
        if (flag>0)
            res.append(flag);
       return res.reverse().toString();
    }
}
